package com.jwcao.common.cast;

import com.jwcao.common.cast.annotation.EnableCast;
import com.jwcao.common.cast.context.CastFlowContextFactory;
import java.io.IOException;

/**
 * name: CastRunner description: TODO
 *
 * @author caojingwei date: 2023/3/23 19:50
 */
public class CastRunner {

    public static void run(Class<?> primarySource) throws IOException, ClassNotFoundException {
        EnableCast enableCast = primarySource.getAnnotation(EnableCast.class);
        CastFlowContextFactory.init(enableCast.basePackages());
    }
}
